package com.bml.architect.consumer.web;

import com.bml.architect.DemoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/consumer")
public class ConsumerController {

    @Autowired
    private DemoService demoService;

    @RequestMapping("/query")
    public String query(@RequestParam(name = "cardNo") String cardNo) {

        return demoService.sayHello(cardNo);
    }
}
